//
//  WeatherTableViewCell.m
//  Focus
//
//  Created by 楼主 on 14-10-31.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "WeatherTableViewCell.h"

@implementation WeatherTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        // Initialization code
        UILabel *cityNameLabel = [[UILabel alloc]init];
        self.cityNameLabel = cityNameLabel;
        [cityNameLabel release];
        [self.contentView addSubview:self.cityNameLabel];
        UIImageView *myImageView = [[UIImageView alloc]init];
        self.myImageView = myImageView;
        [myImageView release];
        //        self.myImageView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.myImageView];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.cityNameLabel.frame = CGRectMake(0, 0, self.frame.size.width / 3 * 2, self.frame.size.height);
    self.myImageView.frame = CGRectMake(self.frame.size.width / 3 * 2, 0, self.frame.size.width / 3 * 1, self.frame.size.height);
}

- (void)dealloc
{
    [_cityNameLabel release];
    [_myImageView release];
    
    [super dealloc];
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
